package com.Tradition.service;

import com.Tradition.mapper.UserMapper;
import com.Tradition.model.User;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * UserLoginService
 *
 * @author 朱笑
 * @date 2018-06-20 17:59
 */
@Service
public class UserLoginService {
    @Autowired
    UserMapper userMapper;
    public User QueryUser(String username ,String password){
        User user = userMapper.selectByUserNameAndPassword(username,password);
        return user;
    }
}
